package spring_learn.a01;


import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class UserRegisterListner {


    //当有用户注册事件发生时，这个方法会被调用
    @EventListener
    public void userRegister(UserRegisteredEvent userRegisteredEvent){
        System.out.println("user register");
    }
}
